{include file="public/header"}
<div class="page-content">
    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
        <div class="widget am-cf" style=" height: 500px;">
            <a href="{:url('Forms/listPage')}">
                <i title="返回" class="iconfont"
                   style="font-size:2.5rem;float: left">&#xe697;</i></a>
            <div class="widget-head am-cf">
                <div class="widget-title am-cf">订单详情</div>
            </div>
            <div class="widget-body am-fr">
                <div class="am-u-sm-12 am-u-md-6 am-u-lg-6">
                    <div class="am-form-group">
                    </div>
                </div>
                <div class="am-u-sm-12">
                    <table class="am-table am-table-compact am-table-striped tpl-table-black" id="dyntable">
                        <tbody>
                        <tr>
                            <td>订单号</td>
                            <td>{$data.form_number}</td>
                            <td>订餐人</td>
                            <td>{$data.users.truename}</td>
                        </tr>
                        <tr>
                            <td>送餐地址</td>
                            <td>{$data.users.address}</td>
                            <td>电话号码</td>
                            <td>{$data.users.phone}</td>
                        </tr>
                        <tr>
                            <td>订餐时间</td>
                            <td>
                                {$data.ftime}
                            </td>
                            <td>订单状态</td>
                            <td>
                                {if condition="$data.status eq 1 "}进行中
                                {else /} 已完成
                                {/if}
                            </td>
                        </tr>
                        </tbody>
                    </table>
                    <table class="am-table am-table-compact am-table-striped tpl-table-black" id="dyntable">

                        <tr>
                            <th class="center">名称</th>
                            <th class="center">单价</th>
                            <th class="center">数量</th>
                            <th class="center">成交价</th>
                        </tr>
                        <tbody>

                        {volist name="sdata" id="vo"}
                        <tr>
                            <td style="text-indent:2em;">
                                {$vo.foods.name}
                            </td>
                            <td class="center">￥{$vo.foods.price}</td>

                            <td class="center">
                                {$vo.foods_number}
                            </td>
                            <td class="center">
                                ￥{$vo.nprice}
                            </td>
                        </tr>
                        {/volist}
                        <tr>
                            <td colspan="9" style="text-indent:2em;position: absolute;right: 20px">
                               <h3>总计:￥{$sum}</h3>
                            </td>
                        </tr>
                        </tbody>

                    </table>
            </div>
        </div>
        
    </div>
    </div>
</div>

</body>
</html>